package com.shioirikukuri.web.msg;
import com.shioirikukuri.common.web.CodeMsg;

/**
 * 秒杀模块自定义异常信息
 * @author shioiriKukuri
 * @date 2019/6/26
 * @description
 * @since v1.0
 * @version v1.0
 */
public class SeckillCodeMsg extends CodeMsg {
    private SeckillCodeMsg(Integer code, String msg){
        super(code,msg);
    }
    public static final SeckillCodeMsg SECKILL_STOCK_OVER = new SeckillCodeMsg(500201,"商品已经被抢购完毕,客官下次早点来哦.");
    public static final SeckillCodeMsg REPEAT_SECKILL = new SeckillCodeMsg(500202,"您已经抢购到商品了，请不要重复抢购!");
    public static final SeckillCodeMsg SECKILL_ERROR = new SeckillCodeMsg(500203,"请求频繁,操作失败");
    public static final SeckillCodeMsg CANCEL_ORDER_ERROR = new SeckillCodeMsg(500204,"超时订单,取消失败!");
    public static final SeckillCodeMsg PAY_SERVER_ERROR = new SeckillCodeMsg(500205,"支付服务繁忙，稍后再试");
    public static final SeckillCodeMsg REFUND_ERROR = new SeckillCodeMsg(500206,"退款失败，请联系管理员");
    public static final SeckillCodeMsg INTEGRAL_SERVER_ERROR = new SeckillCodeMsg(500207,"操作积分失败");
    public static final SeckillCodeMsg PAY_ERROR = new SeckillCodeMsg(500208,"支付失败");
    public static final SeckillCodeMsg ORDER_STATUS_CHANGE = new SeckillCodeMsg(500209,"订单状态发生变化，请重试");
    public static final SeckillCodeMsg INTEGRAL_NOT_ENOUGH = new SeckillCodeMsg(500210,"积分余额不足");
}
